package com.bm.server.controller;

import com.bm.common.dto.ScripDto;
import com.bm.common.vo.R;
import com.bm.server.service.intf.ScripService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * YoungMan, may the force be with you.
 *
 * @Author: 吃个小布丁吧
 * @Date: 2022/07/21/17:04
 */
@RestController
@RequestMapping("/server/scrip/")
public class ScripController {
    @Resource
    private ScripService service;
    @PostMapping("add.do")
    public R add(@RequestBody ScripDto dto){
        return service.add(dto);
    }
    @GetMapping("selectNewThree.do")
    public R selectNewThree(){
        return service.selectNewThree();
    }
    @GetMapping("selectAll.do")
    public R selectAll(){
        return service.selectAll();
    }
}
